package com.generator.sysManage.userManage.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@ToString
@NoArgsConstructor
public class Users {

  private String u_id;
  private String uname;
  private String upassword;
  private String utelephone;

  private Job job;

  private String sex;
  private String statusId;
//  @JSONField(format = "yyyy-MM-dd")  //后端转前端时间格式化
//  @DateTimeFormat(pattern = "yyyy-MM-dd")  //前端转后端时间格式化
  private Date hiredate;
  private Date leavedate;

  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date birthday;

  private Dept dept;

}
